cmake_minimum_required(VERSION 3.17)
project(add_exe_2)

add_executable(main main.cpp)

set_property(TARGET main PROPERTY RUNTIME_OUTPUT_DIRECTORY new_dir)
get_property(var TARGET main PROPERTY RUNTIME_OUTPUT_DIRECTORY)
message(STATUS "RUNTIME_OUTPUT_DIRECTORY = ${var}")
